package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpSupplierEntity;
import com.cowain.monitor.entity.ErpSupplierSiteEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  
 *  * @author 冬暖
 *  * @projectName pms-monitor
 *  * @title     ErpSupplierDao   
 *  * @package    com.cowain.monitor.dao  
 *  * @description    ERP供应商信息       
 *  * @date   2020/7/28 18:03  
 *  * @version V1.0.0
 *  
 */
@Mapper
public interface ErpSupplierDao extends BaseMapper<ErpSupplierEntity> {
    /**
     * 获取所有供应商列表
     * @param isDel 状态
     * @return 供应商列表
     */
    List<ErpSupplierEntity> findErpSupplierList(@Param("isDel") Long isDel);

    /**
     * 批量修改
     * @param supplierEntities 供应商列表信息
     */
    void updateSupplier(List<ErpSupplierEntity> supplierEntities);

    /**
     * 修改供应商地址信息
     * @param supplierSiteEntity 供应商地址信息
     */
    void updateSupplierSite(List<ErpSupplierSiteEntity> supplierSiteEntity);
}
